<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="index.js"></script>
<body>
    <div>
        <button id="connect" onclick="connect()">connect</button>
        <button id="start" onclick="start()">start</button>
        <button id="stop" onclick="stop()">stop</button>
        <button id="download" onclick="download()">download</button>
    </div>
    <div>
        <div>时间：<span id="timestamp"></span></div>
        <div>电压：<span id="voltage"></span>V</div>
        <div>电流：<span id="current"></span>A</div>
        <div>功率：<span id="watt"></span>W</div>
        <div>电量：<span id="mah"></span>mAh</div>
        <div>电量：<span id="wh"></span>Wh</div>
    </div>
</body>
</html>